package com.easywan.vo.base;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;


import com.easywan.vo.Pages;

public class BaseModel  implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	protected Integer id;
	
	//@DateTimeFormat(pattern = "yyyy-MM-dd")  
	protected Date createtime;

	protected Date modifytime;
	
	private Boolean orderFlags = false;;
	
	private String order;
	private Pages page;
	public Pages getPage() {
		return page;
	}

	public BaseModel setPage(Pages page) {
		this.page = page;
		return this;
	}

	public Integer getId() {
		return id;
	}

	public BaseModel setId(Integer id) {
		this.id = id;
		return this;
	}
	

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Date getModifytime() {
		return modifytime;
	}

	public void setModifytime(Date modifytime) {
		this.modifytime = modifytime;
	}

	
	public BaseModel setOrder(String order){
		this.order = order;
		orderFlags = true;
		return this;
	}
	public String getOrder(){
		return order;
	}
	public Boolean getOrderFlags(){
		return orderFlags;
	}

}
